<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<Permissions>
				<Permission type="postContent" contentType="NewsArticle" add="false" edit="false"/>
				<Permission type="postContent" contentType="BlogArticle" add="false" edit="false"/>
				<Permission type="postContent" contentType="Event" add="false" edit="false"/>
			</Permissions>
		</instance>
		<submission id="EditIntegrationPermission" action="" method="post" event="return form_check(this)"/>

		<bind nodeset="Permissions">
			<bind nodeset="Permission[@contentType='NewsArticle']">
				<bind id="pAdd0" nodeset="@add" required="false()" type="string"/>
				<bind id="pEdit0" nodeset="@edit" required="false()" type="string"/>
			</bind>
			<bind nodeset="Permission[@contentType='BlogArticle']">
				<bind id="pAdd1" nodeset="@add" required="false()" type="string"/>
				<bind id="pEdit1" nodeset="@edit" required="false()" type="string"/>
			</bind>
			<bind nodeset="Permission[@contentType='Event']">
				<bind id="pAdd2" nodeset="@add" required="false()" type="string"/>
				<bind id="pEdit2" nodeset="@edit" required="false()" type="string"/>
			</bind>
		</bind>


	</model>
	<group ref="EditContent" class="1Col">
		<label>Edit Permissions for {0}</label>

		
		<group>
			<label>Automatically post content for content type</label>
			<hint>
				For the content types listed down the left, you can opt to automatically post content to {0} when it is added or updated (or both).
			</hint>
			<group class="horizontal">
				<label>News Articles</label>
				<select bind="pAdd0" appearance="full" class="checkboxes">
					<label></label>
					<choices/>
					<item>
						<label>Add</label>
						<value>true</value>
					</item>
				</select>
				<select bind="pEdit0" appearance="full" class="checkboxes">
					<label></label>
					<choices/>
					<item>
						<label>Edit</label>
						<value>true</value>
					</item>
				</select>
			</group>

			<group class="horizontal">
				<label>Blog Articles</label>
				<select bind="pAdd1" appearance="full" class="checkboxes">
					<label></label>
					<choices/>
					<item>
						<label>Add</label>
						<value>true</value>
					</item>
				</select>
				<select bind="pEdit1" appearance="full" class="checkboxes">
					<label></label>
					<choices/>
					<item>
						<label>Edit</label>
						<value>true</value>
					</item>
				</select>
			</group>

			<group class="horizontal">
				<label>Event</label>
				<select bind="pAdd2" appearance="full" class="checkboxes">
					<label></label>
					<choices/>
					<item>
						<label>Add</label>
						<value>true</value>
					</item>
				</select>
				<select bind="pEdit2" appearance="full" class="checkboxes">
					<label></label>
					<choices/>
					<item>
						<label>Edit</label>
						<value>true</value>
					</item>
				</select>
			</group>
		</group>

		<submit submission="" ref="EditIntegrationPermission" class="principle">
			<label>Save Permissions</label>
		</submit>
	</group>
</Content>
